package com.home.cop.sysinfo.mapper;

import com.home.cop.sysinfo.model.SysDataDict;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysDataDictMapper {
    int deleteByPrimaryKey(String sysDictCode);

    int insert(SysDataDict record);

    int insertSelective(SysDataDict record);

    SysDataDict selectByPrimaryKey(String sysDictCode);

    int updateByPrimaryKeySelective(SysDataDict record);

    int updateByPrimaryKey(SysDataDict record);

    public List<SysDataDict> list(@Param("startCode")String startCode,@Param("endCode")String endCode);

    /**
     * 获取所有的数据字典
     * @return
     */
    public List<SysDataDict> listAll();

    /**
     * 修改状态
     * @param code
     * @param status
     */
    public void changeStatus(@Param("code")String code,@Param("status") Integer status);
}